package com.kingint.mbg.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 会员表
 * </p>
 *
 * @author wxh
 * @since 2020-12-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="UmsMember对象", description="会员表")
public class UmsMember implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户名")
    @TableField("username")
    private String username;

    @ApiModelProperty(value = "身份证号码")
    @TableField("id_card")
    private String idCard;

    @ApiModelProperty(value = "工号")
    @TableField("work_num")
    private String workNum;

    @ApiModelProperty(value = "密码")
    @TableField("pass_word")
    private String passWord;

    @ApiModelProperty(value = "手机号码")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "手机短号")
    @TableField("phone_cornet")
    private String phoneCornet;

    @ApiModelProperty(value = "邮箱")
    @TableField("mail")
    private String mail;

    @ApiModelProperty(value = "帐号启用状态:0->禁用；1->启用")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "注册时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "头像")
    @TableField("icon")
    private String icon;

    @ApiModelProperty(value = "性别：0->未知；1->男；2->女")
    @TableField("gender")
    private Integer gender;

    @ApiModelProperty(value = "生日")
    @TableField("birthday")
    private Date birthday;

    @ApiModelProperty(value = "所属酒店id")
    @TableField("hotel_id")
    private Integer hotelId;

    @ApiModelProperty(value = "身份id")
    @TableField("identity_id")
    private Integer identityId;

    @ApiModelProperty(value = "部门id")
    @TableField("department_id")
    private Integer departmentId;

    @ApiModelProperty(value = "部门名称")
    @TableField(exist = false)
    private String departmentName;

    @TableField("weixin_openid")
    private String weixinOpenid;

    @ApiModelProperty(value = "登录时间")
    @TableField("login_time")
    private Date loginTime;

    @ApiModelProperty(value = "上下班状态（0，下班，1，上班）")
    @TableField("work_status")
    private Integer workStatus;

    @TableField(exist = false)
    private Long roleId;

    @ApiModelProperty("管理身份状态（0，不是，1，是）影响小程序首页验收等界面和功能）")
    @TableField(exist = false)
    private Integer manageType;

    @ApiModelProperty("通讯地址")
    @TableField("postal_address")
    private String postalAddress;

    @ApiModelProperty("账号状态（0，正常，1，删除）")
    @TableField("account_status")
    private Integer accountStatus;

    @ApiModelProperty("待处理数量")
    @TableField(exist = false)
    private Integer pendNumber;

    @ApiModelProperty("总完成数量")
    @TableField(exist = false)
    private Integer allComplete;

    @ApiModelProperty("今日完成")
    @TableField(exist = false)
    private Integer todayComplete;

    @ApiModelProperty("本周完成")
    @TableField(exist = false)
    private Integer weekComplete;

    @ApiModelProperty("完成率")
    @TableField(exist = false)
    private BigDecimal completionRate;

    @ApiModelProperty("及时率")
    @TableField(exist = false)
    private BigDecimal timelinessRate;
}
